package org.hepeng.workx.util.proxy;

import java.lang.reflect.Method;

/**
 * @author he peng
 */
public class JavassistInvocation extends AbstractInvocation {

    private Method proceedMethod;

    public JavassistInvocation(Object target, Method method, Object[] args , Method proceedMethod) {
        super(target, method, args);
        this.proceedMethod = proceedMethod;
    }

    @Override
    public Object invoke() throws Throwable {
        return this.proceedMethod.invoke(super.target , super.args);
    }
}
